package javacode.ch06;

import javacode.ch06.Magician;
import javacode.ch06.SwordsMan;

/**
 * Created by lenovo on 2016/3/27.
 */
public class RPG {
    public static void main(String[] args){
        demoSwordsMan();
        demoMagician();
    }

    static void demoSwordsMan(){
        SwordsMan swordsMan=new SwordsMan();
        swordsMan.setName("Justin");
        swordsMan.setLevel(1);
        swordsMan.setBlood(200);
        System.out.printf("剑士：(%s,%d,%d)%n",swordsMan.getName(),swordsMan.getLevel(),swordsMan.getBlood());
    }

    static void demoMagician(){
        Magician magician =new Magician() ;
        magician .setName("Monica");
        magician .setLevel(1);
        magician .setBlood(100);
        System.out.printf("魔法师：(%s,%d,%d)%n",magician .getName(),magician .getLevel(),magician .getBlood());
    }
}
